<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <title>Topic List</title>
</head>
<body>
<div class="nav">
  <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}">Home</a></span>
  <span class="menuButton"><g:link class="create" action="create">New Topic</g:link></span>
</div>
<div class="body">
  <h1>Topic List</h1>

  <div class=forum>
    <table width="100%" class="message-table">
      <thead>
      <tr><th>Заголовок
        <span style="font-weight: normal">[порядок: <b>дата отправки</b> <a href="group-lastmod.jsp?group=19392" style="text-decoration: underline">дата изменения</a>]</span></th><th>Число ответов<br>всего/день/час</th></tr>
      </thead>
      <tbody>

      <g:each in="${topicInstanceList}" var="topic">
        <tr>
          <td>
            <a href="${createLink(action: 'show', id: topic.id)}" rev=contents>
              ${topic.title}
            </a> (${topic.user.nick})
          </td>
          <td align=center>
            <b>todo</b>/<b>todo</b>/<b>todo</b>
          </td>
        </tr>
      </g:each>
      </tbody>
    </table>
  </div>

  <div class="paginateButtons">
    <g:paginate total="${topicInstanceTotal}"/>
  </div>
</div>
</body>
</html>
